{if $bUploaded}
<div style="padding:30px;font-size:10pt;" class="color">
    {language text="your_image_has_been_uploaded"}{if $bApprove} {language text="once_you_have_successfully_submitte"}{/if}
    <br /><br />
    <div style="padding:5px;text-align:center;">{img max_width="350" alt="" src_def="design/pic/noimage_120.jpg" src=$sImageUrl}</div>
</div>
{else}
{messages}
<div id="formhide1">
<br />
<form enctype="multipart/form-data" method="post" action="{url link='public.account.submit.upload-pic'}" style="margin:0px;" onsubmit="document.getElementById('formhide1').style.display='none'; document.getElementById('formhide2').style.display='';">
<table style="width:100%; font-size:9pt;" cellspacing="2" cellpadding="4">
<tr>
    <td style="text-align:right;" class="color">{language text="image_title"}:</td>
    <td class="border13">
        <input type="text" name="title" maxlength="200" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aData.title}" />
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color">{language text="image_category"}:</td>
    <td class="border13">
        <select name="category" style="width:150px;">
        <option value="">{language text='core.any'}</option>
        {html_options options=$aCategories selected=$aData.category}
    	</select>
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color">{language text="who_can_view_this_image_785"}</td>
    <td class="border13">
    	<select name="whoview">
    	{html_options options=$aPrivacySettings selected=$aData.whoview}
    	</select>
    </td>
</tr>
<tr>
    <td style="text-align:right;vertical-align:top;" class="color">{language text="Mod_Tag.tags"}:</td>
    <td class="border13">
        <input type="text" name="tags" maxlength="80" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aData.tags|escape}" maxlength="75" />
        <br />{language text="Mod_Tag.tags_details"}
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color">
    {language text="image"}
    <br/>
    <span style="font-size:7pt;">{if $iMaxUploadSize >= 0}{i18n key='Mod_Gallery.upload_form.max_size' 1=$sMaxFileSize}{else}({language text="your_space_is_exceeded_maximum_allo"}){/if}</span>
    </td>
    <td class="border13">
        <input type="file" name="image" size="30" />
    </td>
</tr>
<tr>
    <td></td>
    <td><br/><input type="submit" name="act[upload]" value=" {language text="upload_image"} " style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';"/></td>
</tr>
</table>
</form>
<br/>
{/if}
<div class="border13">
    <div style="padding:10px;font-size:8pt;" class="color">
    <b>{language text="space_usage_info"}:</b>
    <br /><br />
        {language text="space_used_650"}: {$iUsedSpace|filesize} <br />
        {language text="space_allowed"}: {if $iAllowedSpace == 0}{language text="unlimited"}{else}{$iAllowedSpace|filesize}{/if} <br />
    </div>
</div>
</div>
{include file="$sRootPath/_blocks/bar.html" sMessage='Mod_Language.upload_item'}